home *** CD-ROM | disk | FTP | other *** search
- global gPuppetList, gMaskName, gCostumeName, gCostumeSpriteList
-
- on SelectMask whichSprite
- if whichSprite < 1 then
- exit
- end if
- set the rect of sprite the maskHilite of gPuppetList to the rect of sprite whichSprite
- set theMemberRef to the number of the member of sprite whichSprite
- set maskCastName to the name of member theMemberRef
- delete word 1 of maskCastName
- set gMaskName to maskCastName
- set the text of member "gMaskName Field" to gMaskName
- set the castLibNum of sprite the captainMask of gPuppetList to the number of castLib "Costume Set"
- set the memberNum of sprite the captainMask of gPuppetList to the number of member gMaskName
- set the mask of gCostumeSpriteList to whichSprite
- end
-
- on SelectCostume whichSprite
- if whichSprite < 1 then
- exit
- end if
- set the rect of sprite the costumeHilite of gPuppetList to the rect of sprite whichSprite
- set theMemberRef to the number of the member of sprite whichSprite
- set costumeCastName to the name of member theMemberRef
- delete word 1 of costumeCastName
- set gCostumeName to costumeCastName
- set the text of member "gCostumeName Field" to gCostumeName
- set the castLibNum of sprite the captainCostume of gPuppetList to the number of castLib "Costume Set"
- set the memberNum of sprite the captainCostume of gPuppetList to the number of member gCostumeName
- set the costume of gCostumeSpriteList to whichSprite
- end
-